home *** CD-ROM | disk | FTP | other *** search
- PC/Computing September 1991 ZIPIT.DOC
- Ed Bott Page 232
-
- QBasic + PKzip = Fast, Easy Backups
- -----------------------------------
- DOS 5.0's all0new QBasic is just the ticket
- for adding a menu-driven shell to PKzip's
- command-line interface.
-
- NOTE: ZIPIT is hard-coded for the destination directory named
- C:\ZIPFILES and a location for PKZIP of C:\UTILS\ZIP. You will
- need to modify the source file with DOS 5's QBASIC to your own
- directory structure, as explained in the magazine.
-
- ZIPIT.BAS wraps a friendly shell around PKzip. By following a
- series of menus, you specify the type of backup and the file (or
- files) to be backed up; one particularly useful menu choice lets
- you select every file on the current drive that was created or
- modified that day. Next, you name the destination file. A simple
- error-checking routine rejects illegal filenames and tacks a .ZIP
- extension on the destination. Finally, the program zips the
- selected files into one neat package that it deposits into a
- predetermined directory. To use ZIPIT.BAS, you'll need a copy of
- PKZIP.EXE (see * below) and the QBasic interpreter included with
- DOS 5.0.
-
- The simplest way to use ZIPIT.BAS is to create a ZIPIT.BAT batch
- file containing the following command (add the full pathname for
- ZIPIT.BAS if it's not stored in the root directory):
-
- QBASIC /RUN ZIPIT.BAS
-
- Save the batch file in a directory that's referenced in your
- system's path. Then, switch to the directory containing the
- files to be zipped, type ZIPIT, and follow the menu prompts.
-
- * If you'd rather use ARC, LHARC, or even the DOS BACKUP command
- instead of PKzip, you should be able to do it with a minimum of
- fuss. You'll need to change the switches and check the command
- line in the ZipIt subprogram to be sure all the parameters are
- listed in the right order.
-
-
- Material in this document may not be reproduced in any form
- without permission. Written requests for permission should
- be addressed to Chantal Lavelanet, Ziff-Davis Publishing
- Company, One Park Avenue, New York, NY 10016.